<%-- 
    Document   : Modules
    Created on : Jan 7, 2012, 12:27:20 AM
    Author     : User
--%>

<%@page import="java.util.Set"%>
<%@page import="java.util.ArrayList"%>
<%@page import="cassys.datatransferobjects.TeamDTO"%>
<%@page import="cassys.datatransferobjects.StudentModuleTeamDTO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>

<h1>Users</h1>
<a href="<s:url namespace="/team" action="create" />">Add Team Manually</a>
<a href="<s:url namespace="/team" action="upload" />">UploadTeamFromCSV</a>

<br/><br/>
<table border="1">
    <tr>
        <th>teamId</th>
        <th>description</th>
        <th>size</th>
        <th>Team Members</th>
        
        <th>&nbsp</th>
    </tr>
   
    <s:iterator value="teams">
       
        <tr>
            
            <td><s:property value="teamId"/></td>
            <td><s:property value="description"/></td>
            <td><s:property value="size"/></td>
            
            <td><a href="<s:url namespace="/team" action="view_%{teamId}" />">viewStudentList</a></td>
            <td>
                <a href="<s:url namespace="/user" action="edit_%{teamId}" />">Edit</a>
                &nbsp;&nbsp;&nbsp;
                <a href="<s:url namespace="/user" action="delete_%{teamId}" />">Delete</a>
            </td>
        </tr>
    </s:iterator>
</table>
